package com.rst.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.rst.dao.TimeTableDAO;
import com.rst.model.ClassTiming;
import com.rst.model.TimeTable;
import com.rst.model.Weekday;

@Service
public class TimeTableService {

	@Autowired
	private TimeTableDAO timetableDAO;
	
	
	public List<Weekday> getweekdays() {

		return timetableDAO.getweekdays();
	}


	public Long save(Weekday weekday) {
		return timetableDAO.save(weekday);
	}


	public List<ClassTiming> getclassTimingList() {
		return timetableDAO.getclassTimingList();
	}


	public Long saveClassTiming(ClassTiming classTiming) {
		return timetableDAO.saveClassTiming(classTiming);
	}


	public ClassTiming getClasstimingById(Long classTimingId) {
		return timetableDAO.getClasstimingById(classTimingId);
	}


	public Long saveTimeTable(TimeTable timeTable) {
		return timetableDAO.saveTimeTable(timeTable);
	}


	public List<ClassTiming> getClasstimingBySectionId(Long sectionId) {
		return timetableDAO.getClasstimingBySectionId(sectionId);
	}


	public Weekday getClassWeekdaysBySectionId(Long sectionId) {
		return timetableDAO.getClassWeekdaysBySectionId(sectionId);
	}

	
}
